import junit.framework.Assert;

import org.apache.log4j.Logger;

import cn.edu.tsinghua.thss.alg.closestpair.algorithm.ClosestPair;
import cn.edu.tsinghua.thss.alg.closestpair.algorithm.Rand;
import cn.edu.tsinghua.thss.alg.closestpair.model.PairResult;
import cn.edu.tsinghua.thss.alg.closestpair.model.Point;

public class QSortDebug {

	public static void main(String[] args) {
		Logger log = Logger.getLogger(QSortDebug.class);
		Point[] points=new Point[10];
		points[0]=new Point(1,1);
		points[1]=new Point(1.5,1);
		points[2]=new Point(2,2);
		points[3]=new Point(3,3);
		points[4]=new Point(3.1,3);
		points[5]=new Point(1,2);
		points[6]=new Point(2,1);
//		points[7]=new Point(3.5,1);
//		points[8]=new Point(4.1,4.2);
//		points[9]=new Point(1.03,1);
//		PairResult pr1=ClosestPair.findClosestPair(points,10);
//		log.info(pr1.getP1()+" "+pr1.getP2());
//		PairResult pr2 = ClosestPair.findClosestPairSimple(points,10);
//		log.info(pr2.getP1()+" "+pr2.getP2());
	}
}
